<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	template="/templates/editAcesso.xhtml">
	<ui:param name="bean" value="#{usuarioBean}" />
	<ui:param name="tituloPagina" value="Login de Acesso" />
	<ui:param name="renderedBtnCadastrar" value="true" />
	<ui:param name="renderedBtnVoltar" value="true" />
	<ui:param name="renderedBtnRegistrar" value="false" />
	<ui:param name="renderedBtnEntrar" value="false" />

	<ui:define name="contFormAcesso">
		<div class="form-group">
			<h:outputLabel id="outNome" value="Nome" />
			<h:inputText id="iptNewNome" styleClass="form-control"
				required="true" value="#{bean.instance.nome}"
				maxlength="25" />
			<p:watermark value="Digite seu nome" for="iptNewNome" />
			<h:message for="iptNewNome" class="mensagens" />
		</div>

		<div class="form-group">
			<h:outputLabel id="outEmail" value="Email" />
			<h:inputText id="iptNewEmail" styleClass="form-control"
				required="true" value="#{bean.instance.email}"
				maxlength="45" validatorMessage="#{messages['email.invalido']}">
				<f:validateRegex
					pattern="^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$" />
			</h:inputText>

			<p:watermark value="Digite seu email" for="iptNewEmail" />
			<h:message for="iptNewEmail" class="mensagens" />
		</div>

		<div class="form-group">
			<h:outputLabel id="outLogin" value="Login" />
			<h:inputText id="iptNewLogin" styleClass="form-control"
				required="true" value="#{bean.instance.login}"
				maxlength="25" />
			<p:watermark value="Digite seu login" for="iptNewLogin" />
			<h:message for="iptNewLogin" class="mensagens" />
		</div>

		<div class="form-group">
			<h:outputLabel id="outSenha" value="Senha" />
			<h:inputSecret id="iptNewSenha" styleClass="form-control"
				required="true" value="#{bean.instance.senha}"
				maxlength="8" />
			<p:watermark value="Digite sua senha" for="iptNewSenha" />
			<h:message for="iptNewSenha" class="mensagens" />
		</div>

		<div class="form-group">
			<h:outputLabel id="outConfSenha" value="Confirmar Senha" />
			<h:inputSecret id="iptConfsenha" styleClass="form-control"
				required="true" value="#{bean.confirmSenha}" maxlength="8" />
			<p:watermark value="Confirme sua senha" for="iptConfsenha" />
			<h:message for="iptConfsenha" class="mensagens" />
		</div>
	</ui:define>
</ui:composition>